/*
 *  Copyright (C) 2010  Noxious Productions
 *
 *  This program is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 */

#ifndef __MAP_H__
#define __MAP_H__

#include "tile.hpp"
#include "xml_file.hpp"
#include <vector>
#include <string>
#include <map>
#include <sstream>
#include <SFML/Graphics.hpp>
using namespace std;

// The Map is a 2D vector of pointers to members of the Tile class. It can/must be drawn.
// It handles if the player can work on a tile or not.
class Map
{
public:

    void Draw(sf::RenderWindow &parent);
    bool LoadMap(const string &mapFilePath);

private:

    vector<vector<Tile *> > myMap;  // a 2d vector of the Map.
    map<int, Tile> myTiles;         // A map of all needed tiles.
    // Npcs
    // Gos
};

#endif
